import React, { useState } from 'react'
import Children from '../components/Children'

/**
 * 高阶组件：
 * @returns 
 */
function Register() {
  const [username, setUsername] = useState("xiaowang")
  return (
    <div>
      <h3>Register</h3>
      <p>{username}</p>
      <button onClick={() => setUsername("xiaofeifei")}>修改</button>
      <Children></Children>
    </div>
  )
}

export default Register